package com.sky.service.user.impl;

import com.sky.mapper.user.UserCategoryMapper;
import com.sky.pojo.Category;
import com.sky.service.user.UserCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsercategoryServiceImpl implements UserCategoryService {

    @Autowired
    private UserCategoryMapper userCategoryMapper;




    /**
     * 查询菜品分类回显到用户端
     */
    @Override
    public List<Category> selectUsercategoryListService() {
        List<Category> categories = userCategoryMapper.selectUserCategoryList();
        return categories;
    }
}
